package com.partners.dao.basic;

import com.partners.dao.bo.TaskDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TaskDao {
    int deleteByPrimaryKey(Integer id);

    int insert(TaskDO record);

    int insertSelective(TaskDO record);

    TaskDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TaskDO record);

    int updateByPrimaryKeyWithBLOBs(TaskDO record);

    int updateByPrimaryKey(TaskDO record);


    List<Map<String,Object>> getMyTaskList(Integer uid);

    Map<String,Object> getTaskDetail(Integer id);

    Integer checkTaskTitle(String title, Integer classId, Integer nowTime, Integer id);


    List<Map<String,Object>> getAllTaskList(@Param("classId") Integer classId,
                                            @Param("title") String title,
                                            @Param("timeType") Integer timeType,
                                            @Param("nowTime")Integer nowTime);
}
